package com.example.test.advice.第七章_泛型和反射.建议106_动态代理可以使代理模式更加灵活.statics;

public class Proxy implements Subject{

    Subject subject = null;

    public Proxy(Subject subject) {
        this.subject = subject;
    }

    @Override
    public void request() {
        this.before();
        subject.request();
        this.after();
    }

    public void before(){

    }

    public void after(){

    }
}
